S = input()
S1 = S.split()
S2 = [int(i) for i in S1 if i.isdigit()]
print(sum(S2))